package parkingManage.model;

/**
 * 车位
 * 
 * @author 伟❤志
 *
 */
public class ParkingModel {
	private Integer lotCode;
	private int status;

	public Integer getLotCode() {
		return lotCode;
	}

	public void setLotCode(Integer lotCode) {
		this.lotCode = lotCode;
	}

	public String getStatus() {
		if (status == 1) {
			return "占用";
		}
		return "空位";
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "ParkingModel [lotCode=" + lotCode + ", status=" + status + "]";
	}

	// 无参构造方法
	public ParkingModel() {
	}

	// 构造方法重载
	public ParkingModel(Integer lotCode, int status) {
		this.status = status;
		this.lotCode = lotCode;
	}
}
